package com.umeng.soexample.mvp.contract;

import com.umeng.lib_core.mvp.model.IModel;
import com.umeng.lib_core.mvp.view.IView;
import com.umeng.soexample.bean.BaseEntity;
import com.umeng.soexample.bean.CategoryLeftEntity;
import com.umeng.soexample.bean.CategoryRightEntity;

import java.util.Map;

import io.reactivex.Observable;

/**
 * 品类fragment订阅接口
 */
public interface CategoryFragmentContract {
    //品类fragmentIview接口
    interface CategoryFragmentIView extends IView {
        void categoryLeftSuccess(CategoryLeftEntity entity);
        void categoryRightSuccess(CategoryRightEntity entity);
    }
    //品类fragmentIModel接口
    interface CategoryFragmentIModel extends IModel {
        Observable<BaseEntity> requestCategoryAll(Map<String, String> map);
        Observable<CategoryRightEntity> reqyestCategoryRight(String request);
    }
}
